//
//  MYGIMBaseModel.swift
//  MYGrow
//
//  Created by 小火科技 on 2024/3/11.
//

import HandyJSON

enum MYGIMEventType: String {
case open = "open"
case login = "login_success"
case list = "load_session_list"
case single = "load_session"
case newMessage = "new_message"
case readMessage = "read_message"
case drawMessage = "back_message"
case fastMessage = "set_fastmessage"
case readApply = "read_apply"
case loginFail = "login_fail"
case openSession = "open_session"
case showMsg = "show_msg"
}

class MYGIMBaseModel: HandyJSON {
    var event: String = ""
    var data: Any?
    
    var type: MYGIMEventType? {
        return MYGIMEventType(rawValue: event)
    }
    
    required init() {
    }
}
